<template>
  <div>
    <div class="goback"
         :style="{right:`${right}px`,bottom:`${bottom}px`}"
         @click="$router.go(-1)" title="返回">
      <i class="el-icon-refresh-left"></i>
    </div>
  </div>
</template>

<script>
export default {
  name:'goback',
  props:["right","bottom"],
  data() {
    return {
    };
  },
};
</script>

<style lang="less" scoped>
.goback {
  position: fixed;
  background-color: #FFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 10px gainsboro;
  cursor: pointer;
  z-index: 5;
  i{
    color: rgb(73, 177, 245);
  }
}
</style>
